package com.will.yuaiagent.demo.invoke;

import dev.langchain4j.community.model.dashscope.QwenChatModel;

/**
 * @author will
 * @since 2025/6/26 17:07
 * 测试 LangChain4j
 */
public class LangChainAiInvoke {
    public static void main(String[] args) {
        // TODO
        QwenChatModel qwenChatModel = QwenChatModel.builder()
                .apiKey(new TestApiKey().API_KEY)
                .modelName("qwen-plus")
                .build();
        String chat = qwenChatModel.chat("你是谁？");
        System.out.println(chat);
    }
}
